.trainings-container {
  background-color: #f9f9f9;
  min-height: 100vh;
  padding: 16px;
}

/* 顶部导航栏样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.back-btn {
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background-color: #f0f0f0;
}

.page-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.save-btn {
  font-size: 16px;
  color: #ff6b00;
  min-width: 40px;
}

/* 标签栏样式 */
.tabs-container {
  display: flex;
  margin-bottom: 20px;
  gap: 8px;
}

.tab-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: orange;
  color: white;
}

.tab-button:not(.active) {
  background-color: white;
  color: black;
  border: 1px solid #eee;
}

.tab-button:not(.active):hover {
  background-color: #f5f5f5;
}

/* 训练记录样式 */
.records-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.record-date-group {
  margin-bottom: 20px;
}

.date-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.record-item {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  transition: box-shadow 0.3s ease;
}

.record-item:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.record-image {
  width: 60px;
  height: 60px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 4px;
}

.record-info {
  flex: 1;
}

.record-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.record-time {
  font-size: 12px;
  color: #666;
}

.record-status {
  margin-left: auto;
  color: orange;
  font-size: 18px;
}

/* 预定和收藏列表样式 */
.reservations-container,
.collections-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-item,
.collection-item {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  transition: box-shadow 0.3s ease;
}

.reservation-item:hover,
.collection-item:hover {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.item-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.item-detail {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

/* 加载和空状态样式 */
.loading-container,
.empty-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  flex-direction: column;
}

.loading-text,
.empty-text {
  font-size: 16px;
  color: #666;
  margin-top: 16px;
}

.loading-text {
  color: #ff6b00;
}

/* 图片样式 */
.item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}